﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="AccountsWithDebitBalances.aspx.cs" Inherits="GMAC.ReportingSystem.Paginas.AccountsWithDebitBalances" Theme="Theme" EnableTheming="true" EnableEventValidation="false" %>

<%@ Register assembly="FrameworkManapro.WebUI" namespace="FrameworkManapro.WebUI" tagprefix="fwm" %>

<%@ Import Namespace="FrameworkManapro.Utilities" %>

<%@ Import Namespace="GMAC.ReportingSystem.Business.Entities" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>

    <script type="text/javascript" src="../Scripts/Validations.js"></script>

    <script type="text/javascript" src="../Scripts/CheckFramesAndRedirect.js"></script>

    <script type="text/javascript">
    
        function ExpandPanel() 
        {
            var pnlDetailsExtender = $find("pnlDetailsExtender");
            var pnlSearchExtender = $find("pnlSearchExtender");

            if (pnlDetailsExtender != null) 
            {
                pnlDetailsExtender.expandPanel();
            }
            
            pnlSearchExtender.collapsePanel();
        }
      
    </script>

</head>
<body class="TotalBody">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" EnableScriptGlobalization="true">
    </asp:ScriptManager>
    <div class="Contenedor" style = "padding-bottom: 10px; padding-top:10px;">
        <table cellpadding="0" cellspacing="0" border="0" style="width: 100%; vertical-align: top">
            <tr>
                <td style="text-align: left">
                    <span class="FontArialPaddingLeft15 TitleFontBlue FontArialBoldCaps">&nbsp;Accounts With Debit Balances</span></td>
            </tr>
            <tr>
                <td align="center">
                    <div class="WindowHeightMain">
                        <table cellpadding="0" cellspacing="0" border="0" style="width: 100%; vertical-align: top">
                            <tr>
                                <td class="TDSeparadorV" colspan="2">
                                </td>
                            </tr>
                            <tr class="SearchBackground" style="width: 100%">
                                <td class="TDBorder">
                                    <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                            <td style="padding-left: 10px; text-align: left; width: 100%">
                                                <span class="FontArialBoldCaps" style="font-size: 14px">Search Filter</span>
                                            </td>
                                            <td style="padding-right: 10px; text-align: right">
                                                <asp:ImageButton ID="imgCollapseSearch" ImageAlign="Middle" ImageUrl="~/App_Themes/Theme/Images/Images IE6/Minus.gif"
                                                    Width="25px" Height="25px" OnClientClick="return false;" runat="server" BorderWidth="0px" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                
                                    <!-- --------------------------------------------------------- -->
                                    <!-- Search Panel                                              -->
                                    <!-- --------------------------------------------------------- -->
                                                                    
                                    <asp:Panel ID="pnlSearch" runat="server" SkinID="pnlBusqueda" Height="158px">
                                        <table cellpadding="0" cellspacing="0" border="0" visible="false">
                                            <tr>
                                                <td valign="top">
                                                    <table cellpadding="0" cellspacing="0" border="0">
                                                        <tr style="padding-left: 10px">
                                                            <td style="padding-left: 5px" class="LabelRight12px TDLabelBackground">
                                                                Subscriber</td>
                                                            <td class="TDTextBox">
                                                                <asp:TextBox ID="txtSubscriberSearch" runat="server" 
                                                                    MaxLength="10" SkinID="TextBox12px" TabIndex="1" TextMode="SingleLine"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr style="padding-left: 10px">
                                                            <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                Type</td>
                                                            <td class="TDTextBox">
                                                                <asp:DropDownList ID="ddlTypeSearch" runat="server" SkinID="ddl12px" 
                                                                    TabIndex="2">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr style="padding-left: 10px">
                                                            <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                Insurance Company</td>
                                                            <td class="TDTextBox">
                                                                <asp:DropDownList ID="ddlInsuranceCompanySearch" runat="server" 
                                                                    SkinID="ddl12px" TabIndex="3">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr style="padding-left: 10px">
                                                            <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                &nbsp;</td>
                                                            <td class="TDTextBox">
                                                                &nbsp;</td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td class="TDSeparadorH">
                                                </td>
                                                <td>
                                                    <table border="0" cellpadding="0" cellspacing="0">
                                                        <tr style="padding-left: 10px">
                                                            <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                Emission Date</td>
                                                            <td class="TDTextBox">
                                                                
                                                            <asp:TextBox ID="txtEmissionDateSearch" runat="server" MaxLength="10" SkinID="TextBox12px"
                                                            TextMode="SingleLine" TabIndex="4"></asp:TextBox>
                                                            
                                                            <cc1:CalendarExtender ID="calendarEmissionDateSearch" runat="server" TargetControlID="txtEmissionDateSearch">
                                                            </cc1:CalendarExtender>
                                                            
                                                            <cc1:MaskedEditExtender ID="meeEmissionDateSearch" runat="server" TargetControlID="txtEmissionDateSearch"
                                                                MaskType="Date" Mask="99/99/9999">
                                                            </cc1:MaskedEditExtender>
                                                           
                                                            <cc1:MaskedEditValidator ID="maskedEmissionDateSearch" runat="server" Display="Dynamic"
                                                                InvalidValueMessage="*" ToolTip="Fecha incorrecta" ControlExtender="meeEmissionDateSearch"
                                                                ControlToValidate="txtEmissionDateSearch"></cc1:MaskedEditValidator>
                                                            
                                                            <cc1:MaskedEditValidator ID="maskedEmissionDateSearch2" runat="server" Display="None" InvalidValueMessage="Invalid Emission Date"
                                                                ToolTip="Fecha incorrecta" ControlExtender="meeEmissionDateSearch" ControlToValidate="txtEmissionDateSearch"></cc1:MaskedEditValidator>
                                                            
                                                            <asp:RangeValidator ID="rvEmissionDateSearch" runat="server" ControlToValidate="txtEmissionDateSearch" 
                                                                MinimumValue="01/01/1900" MaximumValue="06/06/2079" Type="Date"
                                                                ErrorMessage="EmissionDateSearch out of valid range">*</asp:RangeValidator>
                                                           
                                                            <cc1:ValidatorCalloutExtender ID="vceEmissionDateSearch2" runat="server" TargetControlID="maskedEmissionDateSearch">
                                                            </cc1:ValidatorCalloutExtender>
                                                            <cc1:ValidatorCalloutExtender ID="vceEmissionDateSearch3" runat="server" TargetControlID="rvEmissionDateSearch">
                                                            </cc1:ValidatorCalloutExtender></td>
                                                        </tr>
                                                        <tr style="padding-left: 10px">
                                                            <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                Emission Days</td>
                                                            <td class="TDTextBox">
                                                                <asp:TextBox ID="txtEmissionDaysSearch" runat="server" MaxLength="10" 
                                                                    SkinID="TextBox12px" TabIndex="5" TextMode="SingleLine"></asp:TextBox>
                                                                <cc1:FilteredTextBoxExtender ID="txtEmissionDaysSearch_FilteredTextBoxExtender" 
                                                                    runat="server" Enabled="True" FilterType="Numbers" 
                                                                    TargetControlID="txtEmissionDaysSearch">
                                                                </cc1:FilteredTextBoxExtender>
                                                            </td>
                                                        </tr>
                                                        <tr style="padding-left: 10px">
                                                            <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                Emission Time</td>
                                                            <td class="TDTextBox">
                                                                <asp:DropDownList ID="ddlEmissionTimeSearch" runat="server" SkinID="ddl12px" 
                                                                    TabIndex="6">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr style="padding-left: 10px">
                                                            <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                &nbsp;</td>
                                                            <td class="TDTextBox">
                                                                <asp:ImageButton ID="imgBuscarReg" runat="server" CausesValidation="false" 
                                                                    Height="25px" ImageAlign="Middle" 
                                                                    ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_Find.jpg" 
                                                                    OnClick="imgBuscarReg_Click" TabIndex="7" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td id="Botones" style="vertical-align: middle">
                                                    &nbsp;</td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                    <cc1:CollapsiblePanelExtender ID="pnlSearch_Collapse" runat="server" TargetControlID="pnlSearch"
                                        BehaviorID="pnlSearchExtender" CollapsedImage="~/App_Themes/Theme/Images/Images IE6/Plus.gif"
                                        ExpandedImage="~/App_Themes/Theme/Images/Images IE6/Minus.gif" CollapseControlID="imgCollapseSearch"
                                        ExpandControlID="imgCollapseSearch" Collapsed="false" SuppressPostBack="false"
                                        ImageControlID="imgCollapseSearch">
                                    </cc1:CollapsiblePanelExtender>
                                </td>
                            </tr>
                            <tr>
                                <td class="TDSeparadorV" colspan="2">
                                </td>
                            </tr>
                            <tr class="SearchBackground" style="width: 100%">
                                <td class="TDBorder">
                                    <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                            <td style="padding-left: 10px; text-align: left; width: 100%">
                                                <span class="FontArialBoldCaps" style="font-size: 14px">Edit Fields       
                                                  </td>
                                            <td style="padding-right: 10px; text-align: right">
                                                <asp:ImageButton ID="imgCollapseEdit" ImageAlign="Middle" ImageUrl="~/App_Themes/Theme/Images/Images IE6/Minus.gif"
                                                    Width="25px" Height="25px" runat="server" BorderWidth="0px" OnClientClick="return false;"
                                                    TabIndex="8" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                
                                    <!-- --------------------------------------------------------- -->
                                    <!-- Panel Details                                             -->
                                    <!-- --------------------------------------------------------- -->                                
                                
                                    <asp:UpdatePanel ID="upDetails" runat="server" UpdateMode="Conditional">
                                        
                                        <Triggers>
                                            <asp:AsyncPostBackTrigger ControlID="btnModify" EventName="Click" />
                                        </Triggers>
                                        
                                        <ContentTemplate>
                                            <asp:Panel ID="pnlEdit" runat="server" SkinID="pnlBusqueda" Height="300px">
                                                <table cellpadding="0" cellspacing="0" border="0" visible="false">
                                                    <tr>
                                                        <td valign="top">
                                                            <table cellpadding="0" cellspacing="0" border="0">
                                                                
                                                                <!-- --------------------------------------------------------- -->
                                                                <!-- Subscriber                                                -->
                                                                <!-- --------------------------------------------------------- -->
                                                                
                                                                <tr style="padding-left: 10px">
                                                                    <td style="padding-left: 5px" class="LabelRight12px TDLabelBackground">
                                                                        Subscriber</td>
                                                                    <td class="TDTextBox">
                                                                        <asp:TextBox ID="txtSubscriber" runat="server" MaxLength="10" SkinID="TextBox12px"
                                                                            TextMode="SingleLine" TabIndex="9"></asp:TextBox>
                                                                        <asp:RequiredFieldValidator ID="rfvSubscriber" runat="server" ControlToValidate="txtSubscriber"
                                                                            Display="Dynamic">*</asp:RequiredFieldValidator>
                                                                        <cc1:ValidatorCalloutExtender runat="server" ID="vceUser" 
                                                                            TargetControlID="rfvSubscriber">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                        
                                                                        <asp:HiddenField ID="hfID" runat="server" />
                                                                    </td>
                                                                </tr>
                                                                
                                                                <!-- --------------------------------------------------------- -->
                                                                <!-- Type                                                      -->
                                                                <!-- --------------------------------------------------------- -->
                                                                
                                                                <tr style="padding-left: 10px">
                                                                    <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                        Type</td>
                                                                    <td class="TDTextBox">
                                                                        <asp:DropDownList ID="ddlType" runat="server" SkinID="ddl12px" TabIndex="10">
                                                                        </asp:DropDownList>
                                                                        <asp:RequiredFieldValidator ID="rfvType" runat="server" 
                                                                            ControlToValidate="ddlType" Display="Dynamic">*</asp:RequiredFieldValidator>
                                                                        <cc1:ValidatorCalloutExtender ID="rfvType_ValidatorCalloutExtender" 
                                                                            runat="server" TargetControlID="rfvType">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                    </td>
                                                                </tr>
                                                                
                                                                <!-- --------------------------------------------------------- -->
                                                                <!-- Insurance Company                                         -->
                                                                <!-- --------------------------------------------------------- -->
                                                                
                                                                <tr style="padding-left: 10px">
                                                                    <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                        Insurance Company</td>
                                                                    <td class="TDTextBox">
                                                                        <asp:DropDownList ID="ddlInsuranceCompany" runat="server" SkinID="ddl12px" 
                                                                            TabIndex="11">
                                                                        </asp:DropDownList>
                                                                        <asp:RequiredFieldValidator ID="rfvInsuranceCompany" runat="server" 
                                                                            ControlToValidate="ddlInsuranceCompany" Display="Dynamic">*</asp:RequiredFieldValidator>
                                                                        <cc1:ValidatorCalloutExtender ID="rfvInsuranceCompany_ValidatorCalloutExtender" 
                                                                            runat="server" TargetControlID="rfvInsuranceCompany">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                    </td>
                                                                </tr>
                                                                
                                                                <!-- --------------------------------------------------------- -->
                                                                <!-- Refresh Fields                                            -->
                                                                <!-- --------------------------------------------------------- -->
                                                                
                                                                <tr style="padding-left: 10px">
                                                                    <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                        &nbsp;</td>
                                                                    <td class="TDTextBox">
                                                                        <asp:ImageButton ID="imgRefresh" runat="server" CausesValidation="false" 
                                                                            Height="25px" ImageAlign="Middle" 
                                                                            ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_Refresh.gif" 
                                                                            OnClick="imgRefresh_Click" TabIndex="12" />
                                                                    </td>
                                                                </tr>
                                                                
                                                                <!-- --------------------------------------------------------- -->
                                                                <!-- Product Type                                              -->
                                                                <!-- --------------------------------------------------------- -->
                                                                
                                                                <tr style="padding-left: 10px">
                                                                    <td style="padding-left: 5px" class="LabelRight12px TDLabelBackground">
                                                                        Product Type</td>
                                                                    <td class="TDTextBox">
                                                                        <asp:DropDownList ID="ddlProductType" runat="server" SkinID="ddl12pxDisabled" 
                                                                            TabIndex="13">
                                                                        </asp:DropDownList>
                                                                        <asp:RequiredFieldValidator ID="rfvProductType" runat="server" 
                                                                            ControlToValidate="ddlProductType" Display="Dynamic">*</asp:RequiredFieldValidator>
                                                                        <cc1:ValidatorCalloutExtender ID="rfvProductType_ValidatorCalloutExtender" 
                                                                            runat="server" TargetControlID="rfvProductType">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                     </td>
                                                                </tr>
                                                                
                                                                <!-- --------------------------------------------------------- -->
                                                                <!-- Bank                                                      -->
                                                                <!-- --------------------------------------------------------- -->
                                                                
                                                                <tr style="padding-left: 10px">
                                                                    <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                        Bank</td>
                                                                    <td class="TDTextBox">
                                                                        <asp:DropDownList ID="ddlBank" runat="server" SkinID="ddl12pxDisabled" 
                                                                            TabIndex="14">
                                                                        </asp:DropDownList>
                                                                        <asp:RequiredFieldValidator ID="rfvBank" runat="server" 
                                                                            ControlToValidate="ddlBank" Display="Dynamic">*</asp:RequiredFieldValidator>
                                                                        <cc1:ValidatorCalloutExtender ID="rfvBank_ValidatorCalloutExtender" 
                                                                            runat="server" TargetControlID="rfvBank">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                    </td>
                                                                </tr>
                                                                
                                                                <!-- --------------------------------------------------------- -->
                                                                <!-- Pending Amount                                            -->
                                                                <!-- --------------------------------------------------------- -->
                                                                
                                                                <tr style="padding-left: 10px">
                                                                    <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                        Pending Amount</td>
                                                                    <td class="TDTextBox">
                                                                        <asp:TextBox ID="txtPendingAmount" runat="server" MaxLength="12" SkinID="TextBox12pxDisabled"
                                                                            onkeypress="return ValAlfanumerico(event);" TabIndex="15"></asp:TextBox>
                                                                            
                                                                        <asp:RequiredFieldValidator ID="rfvPendingAmount" runat="server" 
                                                                            ControlToValidate="txtPendingAmount" Display="Dynamic">*</asp:RequiredFieldValidator>
                                                                        <cc1:ValidatorCalloutExtender ID="vcePendingAmount" runat="server" 
                                                                            TargetControlID="rfvPendingAmount">
                                                                        </cc1:ValidatorCalloutExtender>
 
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                        <td class="TDSeparadorH">
                                                        </td>
                                                        <td>
                                                            <table cellpadding="0" cellspacing="0" border="0">
                                                            
                                                                <!-- --------------------------------------------------------- -->
                                                                <!-- Payment Type                                              -->
                                                                <!-- --------------------------------------------------------- -->
                                                            
                                                                <tr style="padding-left: 10px">
                                                                    <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                        Payment Type</td>
                                                                    <td class="TDTextBox">
                                                                        <asp:DropDownList ID="ddlPaymentType" runat="server" SkinID="ddl12pxDisabled" 
                                                                            TabIndex="16">
                                                                        </asp:DropDownList>
                                                                        <asp:RequiredFieldValidator ID="rfvPaymentType" runat="server" 
                                                                            ControlToValidate="ddlPaymentType" Display="Dynamic">*</asp:RequiredFieldValidator>
                                                                        <cc1:ValidatorCalloutExtender ID="rfvPaymentType_ValidatorCalloutExtender" 
                                                                            runat="server" TargetControlID="rfvPaymentType">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                    </td>
                                                                </tr>
                                                                
                                                                <!-- --------------------------------------------------------- -->
                                                                <!-- Emission Date                                             -->
                                                                <!-- --------------------------------------------------------- -->
                                                                
                                                                <tr style="padding-left: 10px">
                                                                    
                                                                    <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                        Emission Date</td>
                                                                    
                                                                    <td class="TDTextBox">
                                                                        
                                                                        <asp:TextBox ID="txtEmissionDate" runat="server" MaxLength="10" SkinID="TextBox12pxDisabled"
                                                                        TextMode="SingleLine" TabIndex="17"></asp:TextBox>
                                                                        
                                                                        <cc1:CalendarExtender ID="calendarEmissionDate" runat="server" TargetControlID="txtEmissionDate">
                                                                        </cc1:CalendarExtender>
                                                                        
                                                                        <cc1:MaskedEditExtender ID="meeEmissionDate" runat="server" TargetControlID="txtEmissionDate"
                                                                            MaskType="Date" Mask="99/99/9999">
                                                                        </cc1:MaskedEditExtender>
                                                           
                                                                        <cc1:MaskedEditValidator ID="maskedEmissionDate" runat="server" Display="Dynamic"
                                                                            InvalidValueMessage="*" ToolTip="Fecha incorrecta" ControlExtender="meeEmissionDate"
                                                                            ControlToValidate="txtEmissionDate"></cc1:MaskedEditValidator>
                                                                        
                                                                        <cc1:MaskedEditValidator ID="maskedEmissionDate2" runat="server" Display="None" InvalidValueMessage="Invalid Emission Date"
                                                                            ToolTip="Fecha incorrecta" ControlExtender="meeEmissionDate" ControlToValidate="txtEmissionDate"></cc1:MaskedEditValidator>
                                                                        
                                                                        <asp:RangeValidator ID="rvEmissionDate" runat="server" ControlToValidate="txtEmissionDate" 
                                                                            MinimumValue="01/01/1900" MaximumValue="06/06/2079" Type="Date"
                                                                            ErrorMessage="EmissionDate out of valid range">*</asp:RangeValidator>
                                                                       
                                                                        <cc1:ValidatorCalloutExtender ID="vceEmissionDate2" runat="server" TargetControlID="maskedEmissionDate">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                        
                                                                        <cc1:ValidatorCalloutExtender ID="vceEmissionDate3" runat="server" TargetControlID="rvEmissionDate">
                                                                        </cc1:ValidatorCalloutExtender></td>
                                                                </tr>
                                                                
                                                                <!-- --------------------------------------------------------- -->
                                                                <!-- Status LAO Retail                                         -->
                                                                <!-- --------------------------------------------------------- -->
                                                                
                                                                <tr style="padding-left: 10px">
                                                                    <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                        Status LAO Retail</td>
                                                                    <td class="TDTextBox">
                                                                        <asp:DropDownList ID="ddlStatusLAORetail" runat="server" SkinID="ddlLargeDisabled" 
                                                                            TabIndex="18">
                                                                        </asp:DropDownList>
                                                                        <asp:RequiredFieldValidator ID="rfvStatusLAORetail" runat="server" 
                                                                            ControlToValidate="ddlStatusLAORetail" Display="Dynamic">*</asp:RequiredFieldValidator>
                                                                        <cc1:ValidatorCalloutExtender ID="rfvStatusLAORetail_ValidatorCalloutExtender" 
                                                                            runat="server" TargetControlID="rfvStatusLAORetail">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                    </td>
                                                                </tr>
                                                                
                                                                <!-- --------------------------------------------------------- -->
                                                                <!-- Status                                                    -->
                                                                <!-- --------------------------------------------------------- -->
                                                                
                                                                <tr style="padding-left: 10px">
                                                                    <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                        Status</td>
                                                                    <td class="TDTextBox">
                                                                        <asp:DropDownList ID="ddlStatus" runat="server" SkinID="ddl12pxDisabled" 
                                                                            TabIndex="19">
                                                                        </asp:DropDownList>
                                                                        <asp:RequiredFieldValidator ID="rfvStatus" runat="server" 
                                                                            ControlToValidate="ddlStatus" Display="Dynamic">*</asp:RequiredFieldValidator>
                                                                        <cc1:ValidatorCalloutExtender ID="rfvStatus_ValidatorCalloutExtender" 
                                                                            runat="server" TargetControlID="rfvStatus">
                                                                        </cc1:ValidatorCalloutExtender></td>
                                                                </tr>
                                                                
                                                                <!-- --------------------------------------------------------- -->
                                                                <!-- Emission Days                                                -->
                                                                <!-- --------------------------------------------------------- -->
                                                                
                                                                <tr style="padding-left: 10px">
                                                                    
                                                                    <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                        Emission Days</td>
                                                                    <td class="TDTextBox">
                                                                        <asp:TextBox ID="txtEmissionDays" runat="server" MaxLength="10" SkinID="TextBox12pxDisabled"
                                                                            TextMode="SingleLine" TabIndex="20"></asp:TextBox>
                                                                        <asp:RequiredFieldValidator ID="rfvEmissionDays" runat="server" ControlToValidate="txtEmissionDays"
                                                                            Display="Dynamic">*</asp:RequiredFieldValidator>
                                                                        <cc1:ValidatorCalloutExtender runat="server" ID="vceEmissionDays" TargetControlID="rfvEmissionDays">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                        <cc1:FilteredTextBoxExtender ID="fteEmissionDays" runat="server" TargetControlID="txtEmissionDays"
                                                                            Enabled="True" FilterType="Numbers">
                                                                        </cc1:FilteredTextBoxExtender>
                                                                        
                                                                    </td>
                                                                </tr>
                                                                
                                                                <!-- --------------------------------------------------------- -->
                                                                <!-- Emission Time                                             -->
                                                                <!-- --------------------------------------------------------- -->
                                                                
                                                                <tr style="padding-left: 10px">
                                                                    <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                        Emission Time</td>
                                                                    <td class="TDTextBox">
                                                                        <asp:DropDownList ID="ddlEmissionTime" runat="server" SkinID="ddl12pxDisabled" 
                                                                            TabIndex="21">
                                                                        </asp:DropDownList>
                                                                        <asp:RequiredFieldValidator ID="rfvEmissionTime" runat="server" 
                                                                            ControlToValidate="ddlEmissionTime" Display="Dynamic">*</asp:RequiredFieldValidator>
                                                                        <cc1:ValidatorCalloutExtender ID="rfvEmissionTime_ValidatorCalloutExtender" 
                                                                            runat="server" TargetControlID="rfvEmissionTime">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                    </td>
                                                                </tr>
                                                                
                                                                <!-- --------------------------------------------------------- -->
                                                                <!-- Date Projection                                           -->
                                                                <!-- --------------------------------------------------------- -->
                                                                
                                                                <tr style="padding-left: 10px">
                                                                    <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                        Date Proyection</td>
                                                                    <td class="TDTextBox">
                                                                        <asp:TextBox ID="txtDateProyection" runat="server" MaxLength="10" SkinID="TextBox12pxDisabled"
                                                                        TextMode="SingleLine" TabIndex="22"></asp:TextBox>
                                                                        <cc1:CalendarExtender ID="calendarDateProyection" runat="server" TargetControlID="txtDateProyection">
                                                                        </cc1:CalendarExtender>
                                                                        <cc1:MaskedEditExtender ID="meeDateProyection" runat="server" TargetControlID="txtDateProyection"
                                                                            MaskType="Date" Mask="99/99/9999">
                                                                        </cc1:MaskedEditExtender>
                                                                       
                                                                        <cc1:MaskedEditValidator ID="maskedDateProyection" runat="server" Display="Dynamic"
                                                                            InvalidValueMessage="*" ToolTip="Fecha incorrecta" ControlExtender="meeDateProyection"
                                                                            ControlToValidate="txtDateProyection"></cc1:MaskedEditValidator>
                                                                        <cc1:MaskedEditValidator ID="maskedDateProyection2" runat="server" Display="None" InvalidValueMessage="Invalid Date Proyection"
                                                                            ToolTip="Fecha incorrecta" ControlExtender="meeDateProyection" ControlToValidate="txtDateProyection"></cc1:MaskedEditValidator>
                                                                        <asp:RangeValidator ID="rvDateProyection" runat="server" ControlToValidate="txtDateProyection" 
                                                                            MinimumValue="01/01/1900" MaximumValue="06/06/2079" Type="Date"
                                                                            ErrorMessage="DateProyection out of valid range">*</asp:RangeValidator>
                                                                       
                                                                        <cc1:ValidatorCalloutExtender ID="vceDateProyection2" runat="server" TargetControlID="maskedDateProyection">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                        <cc1:ValidatorCalloutExtender ID="vceDateProyection3" runat="server" TargetControlID="rvDateProyection">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                    
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td id="BotonesEdit" style="vertical-align: middle; width:100%;" align="right" colspan="3">
                                                            <asp:ImageButton ID="btnSave" runat="server" ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_Save.jpg"
                                                                OnClick="btnSave_Click" TabIndex="23" />
                                                            <asp:ImageButton ID="btnNew" runat="server" CausesValidation="true" 
                                                                ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_New.jpg" 
                                                                OnClick="btnNew_Click" TabIndex="24" />
                                                            <asp:ImageButton ID="btnCancel" runat="server" ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_Cancel.gif"
                                                                OnClick="btnCancel_Click" TabIndex="25" CausesValidation="false" />
                                                            <br />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </asp:Panel>
                                            <cc1:CollapsiblePanelExtender ID="pnlEdit_Collapse" runat="server" TargetControlID="pnlEdit"
                                                BehaviorID="pnlDetailsExtender" CollapsedImage="~/App_Themes/Theme/Images/Images IE6/Plus.gif"
                                                ExpandedImage="~/App_Themes/Theme/Images/Images IE6/Minus.gif" CollapseControlID="imgCollapseEdit"
                                                ExpandControlID="imgCollapseEdit" Collapsed="true" SuppressPostBack="false" ImageControlID="imgCollapseEdit">
                                            </cc1:CollapsiblePanelExtender>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                            <tr>
                                <td class="TDSeparadorV" colspan="2">
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: left" colspan="2">
                                
                                    <!-- --------------------------------------------------------- -->
                                    <!-- Panel GridView                                            -->
                                    <!-- --------------------------------------------------------- -->
                                
                                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                        <ContentTemplate>
                                            <asp:GridView ID="grvAccountsWithDebitBalances" runat="server" SkinID="GridGMAC" AutoGenerateColumns="False"
                                                Width="100%" OnRowDataBound="grvAccountsWithDebitBalances_RowDataBound" DataKeyNames="AccountNumber">
                                                <Columns>
                                                    <asp:BoundField HeaderText="Subscriber" DataField="AccountNumber" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"/>
                                                    
                                                    <asp:TemplateField runat="server" HeaderText="Type" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                                                        <ItemTemplate >
                                                            <asp:Label runat="server" ID="lblType"><%# ((GeneralEnumTypes.TypeAccountsWithDebitBalances)Eval("AccountType")).ToDescription() %></span></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                     
                                                    <asp:TemplateField runat="server" HeaderText="Insurance Company" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                                                        <ItemTemplate >
                                                            <asp:Label ID="lblCompany" runat="server"><%# Eval("InsuranceCompany.Name")%></span></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    
                                                </Columns>
                                                <HeaderStyle HorizontalAlign="Center" />
                                            </asp:GridView>
                                            <fwm:PagingControl ID="PagingControl" runat="server" 
                                                AllowPageSizeChange="false" OnPageChanged="pagingControl_PageChanged" 
                                                ShowCurrentRecordsLegend="false"  />
                                        </ContentTemplate>
                                        <Triggers>
                                            <asp:AsyncPostBackTrigger ControlID="grvAccountsWithDebitBalances" EventName="SelectedIndexChanged" />
                                            <asp:AsyncPostBackTrigger ControlID="imgBuscarReg" EventName="Click" />
                                        </Triggers>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                            
                                <!-- --------------------------------------------------------- -->
                                <!-- Confirm Popup                                             -->
                                <!-- --------------------------------------------------------- -->
                            
                                <td style="text-align: right;">
                                    <asp:UpdatePanel ID="upMessageConfirm" runat="server" UpdateMode="Conditional">
                                        <ContentTemplate>
                                            
                                            <asp:ImageButton ID="btnModify" runat="server" ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_Modify.jpg"
                                                OnClick="btnModify_Click" OnClientClick="ExpandPanel();" CausesValidation="false"
                                                TabIndex="26" />
                                            
                                            <asp:ImageButton ID="btnDelete" runat="server" CausesValidation="false" 
                                                ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_Delete.jpg" 
                                                OnClick="btnDelete_Click" TabIndex="27" />
                                            
                                            <asp:Panel ID="pnlMessageConfirm" runat="server" CssClass="modalPopup" Height="140px"
                                                Style="display: none;" Width="400px">
                                                
                                                <table width="100%">
                                                    <tr style="height: 100px">
                                                        <td style="height: 100%;" align="center">
                                                            <uc1:wucMessage ID="wucMessageConfirm" runat="server" MessageType="Information" Message="Are you sure you want to delete the selected user?"
                                                                Visible="true" />
                                                        </td>
                                                    </tr>
                                                    <tr style="vertical-align: bottom">
                                                        <td align="center">
                                                            <asp:ImageButton ID="btnConfirm" runat="server" ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_Accept.jpg"
                                                                CausesValidation="false" OnClick="btnConfirm_Click" />
                                                            <asp:ImageButton ID="btnCancelConfirm" runat="server" ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_Cancel.gif"
                                                                CausesValidation="false" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </asp:Panel>
                                            
                                            <cc1:ModalPopupExtender ID="popupExtenderConfirm" runat="server" BackgroundCssClass="modalBackground"
                                                DropShadow="false" PopupControlID="pnlMessageConfirm" TargetControlID="lnkConfirm"
                                                CancelControlID="btnCancelConfirm">
                                            </cc1:ModalPopupExtender>
                                            
                                            <asp:LinkButton ID="lnkConfirm" runat="server"></asp:LinkButton>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    
    <!-- --------------------------------------------------------- -->
    <!-- Panel Message                                             -->
    <!-- --------------------------------------------------------- -->    
    
    <asp:UpdatePanel ID="upMessage" runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
        </Triggers>
        <ContentTemplate>
            <asp:Panel ID="pnlMessage" runat="server" CssClass="modalPopup" Height="140px" Style="display: none;"
                Width="400px">
                <table width="100%">
                    <tr style="height: 100px">
                        <td style="height: 100%" align="center">
                            <uc1:wucMessage ID="wucMessage" runat="server" />
                        </td>
                    </tr>
                    <tr style="vertical-align: bottom">
                        <td align="center">
                            <asp:ImageButton ID="btnAccept" runat="server" ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_Accept.jpg"
                                CausesValidation="false" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            
            <cc1:ModalPopupExtender ID="popupExtenderMessage" runat="server" BackgroundCssClass="modalBackground"
                DropShadow="false" PopupControlID="pnlMessage" TargetControlID="lnkPopupMessage"
                CancelControlID="btnAccept">
            </cc1:ModalPopupExtender>
            
            <asp:LinkButton ID="lnkPopupMessage" runat="server"></asp:LinkButton>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>

